package com.net.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class IpUtil {
	public static InetAddress[] getIpByDomain(String domain){
		InetAddress[] ips = null;
		try {
			ips =  InetAddress.getAllByName(domain);
		} catch (UnknownHostException e) {
			e.printStackTrace();
			return null;
		}
		return ips;
	}
}
